home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / sed-2_00.lha / sed-2.00 / ChangeLog < prev    next >
Text File  |  1993-07-15  |  12KB  |  352 lines

  1. Fri Jul 16 01:12:08 1993  Tom Lord  (lord@unix8.andrew.cmu.edu)
  2.  
  3.     * rx.[ch], sed.c: rx replaces regex.
  4.  
  5. ------ sed 2.0 ------
  6.  
  7. Thu May 27 11:13:03 1993  Tom Lord  (lord@unix3.andrew.cmu.edu)
  8.  
  9.     * sed.c (execute_program, match_addr): caught more cases
  10.     that need to be sensitive to a missing \n at EOF.
  11.  
  12. Fri May 21 00:39:22 1993  Tom Lord  (lord@unix8.andrew.cmu.edu)
  13.  
  14.     * sed.c (execute_program): apply gaumondp's patch
  15.       to fix '\xabcxs/foo/bar/'.
  16.  
  17.     * sed.c (execute_program):
  18.       If a second address is a regexp, never match it on the
  19.       same line as the first address.
  20.       
  21.     * sed.c (compile_regexp): 
  22.       Numeric ranges  x,y s.t. y < x are now treated as x,x.
  23.       There was a bug in that they were being handled like x,x+1.
  24.  
  25.     * sed.c (execute_program, read_pattern_space,
  26.       append_pattern_space) don't add newlines to lines
  27.       that don't have them.
  28.  
  29. Wed May 19 13:34:45 1993  Tom Lord  (lord@unix9.andrew.cmu.edu)
  30.  
  31.     * sed.c (compile_program): grok \\n in comments.
  32.  
  33. Mon May 17 16:34:50 1993  Tom Lord  (lord@unix9.andrew.cmu.edu)
  34.  
  35.     * alloca.c: new (standard) file
  36.  
  37.     * configure.in: AC_CONSTified
  38.  
  39.     * sed.c (compile_program): properly diagnose the error of
  40.     a missing command (e.g. sed /x/). (thanks gaumondp)
  41.  
  42.     * sed.c (compile_regexp): handle character classes correctly.
  43.     Thanks gaumondp@ERE.UMontreal.CA
  44.     and  schwab@issan.informatik.uni-dortmund.de.
  45.  
  46. Thu May  6 12:37:18 1993  Tom Lord  (lord@unix10.andrew.cmu.edu)
  47.  
  48.     * sed.c (compile_filename, execute_program): don't use
  49.     `access' or `/dev/null'.
  50.  
  51.     * sed.c (execute_program): 'N' at EOF should delete the pat buf.
  52.  
  53.     * sed.c (compile_filename): truncate, don't append files
  54.     being openned for `w' or `s///w'
  55.  
  56.     * sed.c (execute_program): -n switch shouldn't effect `i' or `c'.
  57.  
  58.     * sed.c (compile_program): don't compile unescaped newlines
  59.     into the substitution string of an `s' command (they are an error).
  60.  
  61.     * sed.c (compile_regex): correctly skip over character
  62.     sets that contain `]'.
  63.  
  64.     * sed.c (execute_program): patch from gaumondp
  65.     Correctly handle empty-string matches in the case of an `s'
  66.     command with a repeat count.
  67.  
  68.     * sed.c (compile_program): patch from gaumondp@ere.UMontreal.ca.
  69.     Don't consume characters after the label of a `b', `t' or `:' command.
  70.  
  71.     * sed.c (compile_program): unmatched open braces are an error.
  72.  
  73.     * sed.c (compile_file): when consuming an initial comment,
  74.     count lines correctly.
  75.  
  76. Wed Nov 18 02:10:58 1992  Tom Lord  (lord@unix2.andrew.cmu.edu)
  77.  
  78.     * sed.c (execute_program): Made s///p print even if -n was
  79.     specified.
  80.  
  81.     * sed.c (compile_string): Changed the type of this function to
  82.     fix a compile warning.
  83.  
  84. Wed Nov  4 17:15:34 1992  Tom Lord  (lord@unix7.andrew.cmu.edu)
  85.  
  86.     * sed.c (main): Initialize the hold area to contain "\n"
  87.     instead of "".  In execute_program, all lines are expected
  88.     to be newline terminated.  Also, if H is the first command
  89.     in the script, the result is a pattern buffer that begins
  90.     with a blank line.  Thanks to pinard@iro.umontreal.ca
  91.     (Francois Pinard) for pointing out this and many other bugs.
  92.  
  93.     * sed.c (execute_program): Fixed a case of `D' command.
  94.       Thanks Chris Weber <weber@bucknell.edu>
  95.  
  96.     * sed.c: added new tests of no_default_output to make -n work.
  97.       Thanks Andrew Herbert <andrew@werple.apana.org.au>
  98.  
  99.     * sed.c, configure.in,Makefile.in: autoconfed bcopy and const.
  100.       Thanks "J.T. Conklin" <jtc@gain.com>
  101.  
  102.     * sed.c: made prog_cur, prog_start, and prog_end unsigned so
  103.     that users could write  `sed -e s/ /foo/g'.
  104.  
  105. Tue Oct 13 00:04:05 1992  Tom Lord  (lord@unix3.andrew.cmu.edu)
  106.  
  107.     * sed.c (execute_program): fixed the cycling behavior of 'D'
  108.  
  109.     * sed.c: integrated patch that closes files
  110.  
  111.     * sed.c: changed regexp syntax
  112.  
  113. Fri May 22 15:11:12 1992  Tom Lord  (lord at moriarty.bh.andrew.cmu.edu)
  114.  
  115.     * regex.c:  this is not my change, but a pointer to the fact
  116.     that karl@gnu fixed some regexp bugs that were plaguing sed.
  117.  
  118. Thu Apr 30 13:02:21 1992  Tom Lord  (lord at unix3.andrew.cmu.edu)
  119.  
  120.     * sed.c (compile_program, execute_program)
  121.     subprograms are now compiled with an explicit continuation ;)
  122.     return_v and return_i in struct vector.  execute_program
  123.     no longer recurses to execute subprograms (case '{') and now
  124.     understands a return instruction (case '{').
  125.  
  126. Tue Apr 28 17:13:04 1992  Tom Lord  (lord at unix7.andrew.cmu.edu)
  127.  
  128.     * sed.c (compile_address) added \?regexp? syntax for addresses.
  129.  
  130.     * sed.c (main) added {} intervals to the obscure regexp
  131.       syntax.
  132.  
  133.     * sed.c (compile_program)  after calling compile_address,
  134.       normalize numeric addresses (make a2.addr_number > a1.addr_number).
  135.       This is necessary because line numbers must match exactly, 
  136.       but sed does not try to match a2 until after a1 has matched,
  137.       yet a1,a2 where a2 <= a1 is defined to be equivelent to
  138.       a1,a1+1
  139.  
  140. Sat Feb 29 10:55:54 1992  David J. MacKenzie  (djm@nutrimat)
  141.  
  142.     * sed.c (usage): Document long options as starting with `--'.
  143.  
  144. Mon Dec  9 23:56:40 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  145.  
  146.     * sed.c: Include sys/types.h, for new regex.h.
  147.  
  148. Tue Nov  5 02:16:01 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  149.  
  150.     * utils.c: Change NO_VFPRINTF to VPRINTF_MISSING, for
  151.     compatibility with autoconf.
  152.  
  153. Mon Sep  2 22:02:40 1991  David J. MacKenzie  (djm at apple-gunkies)
  154.  
  155.     * sed.c (compile_regex): Treat \ as a normal character when in
  156.     a char class.
  157.  
  158. Thu Aug  8 00:15:33 1991  David J. MacKenzie  (djm at bleen)
  159.  
  160.     * Version 1.08.
  161.  
  162.     * sed.c (compile_filename): If reading a file fails, read
  163.     /dev/null instead.  It's what Unix and POSIX do, effectively.
  164.  
  165.     * sed.c (compile_regex): The 'slash' character doesn't
  166.     terminate the regex if it's in a character class.
  167.  
  168.     * sed.c (main): If given no args, or bad option, print usage
  169.     message.
  170.     (usage): New function.
  171.  
  172.     * sed.c (execute_program): Amount written for 'P' command was
  173.     wrong.  From stephend@ksr.com (Stephen Davis).
  174.  
  175. Wed Aug  7 16:51:14 1991  David J. MacKenzie  (djm at apple-gunkies)
  176.  
  177.     * sed.c (append_pattern_space): Check for buffer full before
  178.     instead of after writing to buffer.  Don't need to test for
  179.     EOF initially anymore, due to the next change.
  180.     (execute_program): For 'n' and 'N' commands, if eof is reached
  181.     in input, quit the script like Unix sed does.
  182.     Fix memory allocation problems for 'a' and 'r' commands.
  183.     (compile_program): Fix off by one error in processing comments.
  184.     All of the above are from Tapani Tarvainen, tarvaine@tukki.jyu.fi.
  185.  
  186.     * sed.c (setup_jump): Use isblank instead of testing for ' '
  187.     or '\t', for POSIX locales.
  188.  
  189.     * utils.c (ck_strdup): Renamed from strdup.
  190.     * sed.c: Change callers.
  191.  
  192.     * sed.c, utils.c: Clean up declarations and includes to get
  193.     rid of compiler warnings.
  194.  
  195.     * sed.c (main): Add long-named options.  Don't complain if -n
  196.     is given twice.
  197.  
  198. Fri Aug  2 12:33:16 1991  David J. MacKenzie  (djm at apple-gunkies)
  199.  
  200.     * configure: Support +srcdir arg.  Create config.status and
  201.     remove it and Makefile if interrupted while creating them.
  202.     * Makefile.in: Change DESTDIR to prefix.
  203.  
  204. Mon Jul 15 13:07:39 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  205.  
  206.     * sed.c (main): Add -V option to print version number.
  207.     (USAGE): Mention -V.
  208.  
  209. Mon Jul  8 01:42:22 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  210.  
  211.     * sed.c: Define bcopy in terms of memcpy if STDC_HEADERS as
  212.     well as if USG.
  213.     (compile_filename): Don't glob filename (for 'r' and 'w'
  214.     commands).  Unix sed doesn't do it and it's not very useful,
  215.     since it can only match 0 or 1 files.
  216.     (execute_program): Change '\a' to 007 since some compilers
  217.     don't recognize \a.
  218.     * utils.c: New file; code moved from sed.c.
  219.     * Replace Makefile with Makefile.in and configure.
  220.     Update README.
  221.  
  222. Tue Mar 26 13:00:48 EST 1991    Jay Fenlason (hack@gnu.ai.mit.edu)
  223.  
  224.     * sed.c (match_address)  Added a trivial cast for portability.
  225.  
  226. Mon Feb 25 13:23:29 EST 1991    Jay Fenlason (hack@ai.mit.edu)
  227.  
  228.     * sed.c  Changed 's' command to work with latest version of regex()
  229.     routines, which mysteriously changed somewhere in there. . .
  230.     A one-line patch from David Eckelkamp (eckelkamp@mcc.com).
  231.  
  232.     Initialize the fastmap in the hopes that it'll make sed faster.
  233.  
  234. Thu Feb 21 13:42:27 EST 1991    Jay Fenlason (hack@ai.mti.edu)
  235.  
  236.     * sed.c Change panic to compile with other __STDC__ compilers.
  237.  
  238. Wed Jan 30 10:46:38 EST 1991    Jay Fenlason (hack@ai.mit.edu)
  239.  
  240.     * sed.c  Changed version number.  Made new release.
  241.  
  242. Tue Nov 27 15:34:51 EST 1990    Jay Fenlason (hack@ai.mit.edu)
  243.  
  244.     * sed.c (setup_jump)  Don't blow chunks if there isn't a label
  245.     after a b or t command.
  246.  
  247.         (main) Don't panic if it a branch command doesn't have
  248.     a label to branch to.
  249.  
  250.         (main)  Collect all the -e arguments together and parse them
  251.     all at once.  This way, -e { -e mumble -e } will work.
  252.  
  253.     All these small patches from David Schmidt (davids@isc-br.isc-br.com)
  254.  
  255. Tue Sep 11 12:51:37 EDT 1990    Jay Fenlason (hack@ai.mit.edu)
  256.  
  257.     * sed.c Changed some function forward declarations to use VOID *
  258.     instead of char *
  259.  
  260. Mon Jul 16 11:12:54 EDT 1990 Jay Fenlason (hack@ai.mit.edu)
  261.  
  262.     * sed.c (ck_malloc)  Use malloc(1) instead of malloc(0) if given
  263.     a request for zero bytes.
  264.  
  265. Tue Jun  5 02:05:37 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  266.  
  267.     * sed.c: Remove excess newlines from calls to panic.
  268.     Reformat some comments to fit in 79 columns.
  269.     Base whether to use void * on __STDC__, not __GNU__.
  270.     (main): Add missing arg when printing usage message.
  271.     Print usage if given invalid arg.
  272.     (panic) [__STDC__]: Add missing ", ...".
  273.     (compile_filename): Print correct error message if glob_filename
  274.     returns NULL.
  275.  
  276. Thu Apr  5 21:41:12 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  277.  
  278.     * sed.c (execute_program, case 'r'): When need to realloc append.text,
  279.     multiply append.alloc by 2 instead of adding
  280.     cur_cmd->x.cmd_txt.text_len.
  281.  
  282. Tue Mar  6 15:55:35 EST 1990 Jay Fenlason (hack@ai.mit.edu)
  283.  
  284.     * sed.c (compile_regex)  Allocate 10 bytes extra space needed by
  285.     re_compile_pattern.
  286.  
  287. Sun Feb 25 16:32:10 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  288.  
  289.     * sed.c (execute_program, case 'l'): Print \00 instead of \0.
  290.     Print backslash as \\ not \.
  291.     Print \xx instead of /xx.
  292.  
  293. Thu Feb  1 14:02:28 EST 1990        hack@wookumz
  294.  
  295.     * sed.c (memchr)  Use () inside inner loop so it will work correctly.
  296.     A two character patch from Robert A Bruce (rab@allspice.berkeley.edu)
  297.  
  298. Wed Sep 27 18:47:39 EDT 1989        hack@ai.mit.edu
  299.  
  300.     * sed.c (compile_regex)  New function.  When compiling regex,
  301.     turn ^ into \` and $ into \' so that they won't match on embedded
  302.     newlines.  UN*X    pattern matching is a crock.
  303.     (compile_program, compile_address) call compile_regex.
  304.  
  305. Mon Sep 18 10:15:32 EDT 1989        hack@ai.mit.edu
  306.  
  307.     * sed.c (compile_program):  define translate as unsigned char * so
  308.     that y command will work on non-ascii characters.
  309.  
  310.     Changed version number to 1.06.
  311.  
  312. Thu Sep 14 15:57:08 EDT 1989        hack@ai.mit.edu
  313.  
  314.     * sed.c  (compile_program)  Let programs use ; to terminate } as
  315.     well as newline.
  316.  
  317.     (read_file) Print an error msg to stderr if it can't open an
  318.      input file.
  319.  
  320. Thu Mar 23 18:04:46 1989  Randall Smith  (randy at apple-gunkies.ai.mit.edu)
  321.  
  322.     * Makefile, sed.c: Added new copyright notice.
  323.  
  324.     * Makefile: Make distributions which follow the symlinks.
  325.  
  326. hack@ai.mit.edu
  327.  
  328.     1.05    Fixed error in 'r' (now does things in the right order)
  329.  
  330.     1.04    Fixed s/re/rep/[number]
  331.  
  332.     1.03    Fixes from Mike Haertel for regexps that match the
  333.         empty string, and for Ritchie stdio (non-sticky EOF)
  334.  
  335.     1.02    Fixed 't', 'b', ':' to trim leading spaces and tabs
  336.         Fixed \\ in replacement of 's' command
  337.         Added comments
  338.  
  339.     1.01    Added s/re/rep/[digits]
  340.         added #n as first line of script
  341.         added filename globbing
  342.         added 'l' command
  343.         All in the name of POSIX
  344.  
  345.     1.00    Began (thinking about) distributing this file
  346.  
  347. Local Variables:
  348. mode: indented-text
  349. left-margin: 8
  350. version-control: never
  351. End:
  352.